/********************************************************************
	created:	2008/10/04
	created:	4:10:2008   17:23
	filename: 	h:\SimoneEngine\qianye\src\qylib\sysutil\qyTime.h
	author:		Xiong Jiayu
	copyright:  
	purpose:	
*********************************************************************/
#pragma once

#ifndef __QYTIMERWIN32_H__
#define __QYTIMERWIN32_H__

#include <time.h>
#include <windows.h>

/*
===========================================
class qyTimerWin32
===========================================
*/
class qyTimerWin32
{
public:
						qyTimerWin32();
						~qyTimerWin32();

	void				Reset();
	unsigned long		GetMilliseconds( void );
	unsigned long		GetMicroseconds( void );
	unsigned long		GetMillisecondsCPU( void );
	unsigned long		GetMicrosecondsCPU( void );
private:
	clock_t				m_zeroClock;
	DWORD				m_startTick;
	LONGLONG			m_lastTime;
	LARGE_INTEGER		m_startTime;
	LARGE_INTEGER		m_Frequency;
	DWORD				m_timerMask;
};


#endif


